// 你想要多大的数组?

#include <iostream>
using namespace std;

int main() {

    int size;
    cout << "你想要多大的数组?: ";
    cin >> size;

    int limit;
    cout << "你的随机数范围是从 0 到 几?: ";
    cin >> limit;

    int* a = new int[size];
    srand(123);

    for (int i = 0; i < size; i++) {
        a[i] = rand() % limit;
        cout << "i = " << i << ", 随机数 = " << a[i] << "\n";
    }

    cout << "哇, 有这么多数啊\n";

    delete []a;
}